package instruction;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class UserData implements Serializable {
    private String account;//user的唯一账号
    private User user;//个人信息
    private ArrayList<Friend> friendList=new ArrayList<>();//好友列表
    private ArrayList<Group> groupList=new ArrayList<>();//群聊列表
    private  ArrayList<ArrayList<Message>> groupMessageRecord=new ArrayList<>();//群聊消息记录
    private  ArrayList<ArrayList<Message>> chatMessageRecord=new ArrayList<>();//私聊消息记录

    public UserData(String account, User user, ArrayList<Friend> friendList, ArrayList<Group> groupList, ArrayList<ArrayList<Message>> groupMessageRecord, ArrayList<ArrayList<Message>> chatMessageRecord) {
        this.account = account;
        this.user = user;
        this.friendList = friendList;
        this.groupList = groupList;
        this.groupMessageRecord = groupMessageRecord;
        this.chatMessageRecord = chatMessageRecord;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public ArrayList<Friend> getFriendList() {
        return friendList;
    }

    public void setFriendList(ArrayList<Friend> friendList) {
        this.friendList = friendList;
    }

    public ArrayList<Group> getGroupList() {
        return groupList;
    }

    public void setGroupList(ArrayList<Group> groupList) {
        this.groupList = groupList;
    }

    public ArrayList<ArrayList<Message>> getGroupMessageRecord() {
        return groupMessageRecord;
    }

    public void setGroupMessageRecord(ArrayList<ArrayList<Message>> groupMessageRecord) {
        this.groupMessageRecord = groupMessageRecord;
    }

    public ArrayList<ArrayList<Message>> getChatMessageRecord() {
        return chatMessageRecord;
    }

    public void setChatMessageRecord(ArrayList<ArrayList<Message>> chatMessageRecord) {
        this.chatMessageRecord = chatMessageRecord;
    }
}
